package com.start.platform.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.start.platform.core.entity.StartPlatformUserEntity;
import com.start.platform.core.vo.StartPlatformUserVo;

/**
 * 第三方平台用户信息
 *
 * @author gxl
 * @email ${email}
 * @date 2021-03-25 09:12:51
 */
public interface StartPlatformUserService extends IService<StartPlatformUserEntity> {

    /**
     * 根据openId 查询用户信息
     *
     * @param platformType
     * @param appId
     * @param openId
     * @return
     */
    StartPlatformUserVo getUserByOpenId(String platformType, String appId, String openId);

    /**
     * 根据appId 用户名查询用户
     *
     * @param userName
     * @return
     */
    StartPlatformUserEntity getByUserName(String userName);

    /**
     * 根据用电话查询用户
     *
     * @param phone
     * @return
     */
    StartPlatformUserEntity getByUserPhone(String phone);


}

